<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>windows下安装pyscipopy | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="安装教程">
<meta property="og:type" content="article">
<meta property="og:title" content="windows下安装pyscipopy">
<meta property="og:url" content="http://example.com/2021/03/13/windows%E7%8E%AF%E5%A2%83%E4%B8%8B%E5%AE%89%E8%A3%85pyscipopt/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="安装教程">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="d:/01_work/2021/01_document/05其他/技术博客/file-read-667.png">
<meta property="og:image" content="d:/01_work/2021/01_document/05其他/技术博客/file-read-668.png">
<meta property="article:published_time" content="2021-03-13T14:09:39.436Z">
<meta property="article:modified_time" content="2021-03-13T14:21:33.758Z">
<meta property="article:author" content="John Doe">
<meta property="article:tag" content="学习笔记">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="d:/01_work/2021/01_document/05其他/技术博客/file-read-667.png">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://example.com"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-windows环境下安装pyscipopt" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2021/03/13/windows%E7%8E%AF%E5%A2%83%E4%B8%8B%E5%AE%89%E8%A3%85pyscipopt/" class="article-date">
  <time class="dt-published" datetime="2021-03-13T14:09:39.436Z" itemprop="datePublished">2021-03-13</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/SCIP/">SCIP</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      windows下安装pyscipopy
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <p>SCIP是一款优秀的开源求解器，起源于ZIB(Zuse Institute Berlin)，由博士生Tobias Achterberg奠定整个框架。在开源求解器中，它对混合整数规划和混合整数非线性规划问题求解速度是最快的之一。 在使用SCIP的过程中，用户可以对求解过程进行全面控制，访问详细的求解过程直到最终的结果。</p>
<p>SCIP支持多种编程语言，包括：</p>
<blockquote>
<p>Python</p>
<p>Java</p>
<p>AMPL</p>
<p>GAMS</p>
<p>MATLAB</p>
</blockquote>
<p>也支持多种平台，包括</p>
<blockquote>
<p>Linux</p>
<p>Mac</p>
<p>Windows</p>
<p>SunOS</p>
<p>Andriod</p>
</blockquote>
<p>本文介绍在Windows环境中安装SCIPOptSuite，以及安装python调用接口的方法。</p>
<h3 id="一、安装SCIPOptSuite"><a href="#一、安装SCIPOptSuite" class="headerlink" title="一、安装SCIPOptSuite"></a>一、安装SCIPOptSuite</h3><p>1、在官网下载安装包，地址<a target="_blank" rel="noopener" href="https://www.scipopt.org/index.php#download">https://www.scipopt.org/index.php#do</a>wnload</p>
<p><img src="D:\01_work\2021\01_document\05其他\技术博客\file-read-667.png" alt="file-read-667"></p>
<p>注意它需要哪些版本的Visual C++依赖，后面很可能会用到。<br>2.下载完后，管理员安装即可。</p>
<p>3.记得设置境变量，把 ..\SCIPOptSuite 6.0.2\bin加到环境变量中去。</p>
<p>4.测试一下。打开cmd，输入scip，显示下面画面即可证明安装成功。</p>
<p><img src="D:\01_work\2021\01_document\05其他\技术博客\file-read-668.png" alt="file-read-668"></p>
<h3 id="二、安装pyscipopt包"><a href="#二、安装pyscipopt包" class="headerlink" title="二、安装pyscipopt包"></a>二、安装pyscipopt包</h3><p>1、python通过pyscipopt包来调用安装好的SCIPOptSuite，首先要注意pyscipopt的版本是否和SCIPOptSuite的版本匹配，匹配关系见<a target="_blank" rel="noopener" href="https://github.com/SCIP-Interfaces/PySCIPOpt/blob/master/INSTALL.md%E3%80%82">https://github.com/SCIP-Interfaces/PySCIPOpt/blob/master/INSTALL.md。</a></p>
<table>
<thead>
<tr>
<th align="left">SCIP</th>
<th align="left">PySCIPOpt</th>
</tr>
</thead>
<tbody><tr>
<td align="left">7.0</td>
<td align="left">3.0</td>
</tr>
<tr>
<td align="left">6.0</td>
<td align="left">2.2, 2.1, 2.0</td>
</tr>
<tr>
<td align="left">5.0</td>
<td align="left">1.4, 1.3</td>
</tr>
<tr>
<td align="left">4.0</td>
<td align="left">1.2, 1.1</td>
</tr>
<tr>
<td align="left">3.2</td>
<td align="left">1.0</td>
</tr>
</tbody></table>
<p>2、确认版本后，在anaconda中通过以下命令安装pyscipopt</p>
<p>pip install pyscipopt==版本号</p>
<p>3、如果安装失败，出现以下错误：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ImportError: DLL load failed: 找不到指定的模块。</span><br></pre></td></tr></table></figure>

<p>请检查版本号是否正确。</p>
<p>如果出现以下错误：</p>
<blockquote>
<p>Microsoft visual C++ 14.0 is required.</p>
</blockquote>
<p>请安装相应的微软环境依赖。</p>
<p>4、安装后，在python环境中输入 import pyscipopt 不报错即证明安装成功！</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2021/03/13/windows%E7%8E%AF%E5%A2%83%E4%B8%8B%E5%AE%89%E8%A3%85pyscipopt/" data-id="ckm7t5pcy0003hott7agthxjt" data-title="windows下安装pyscipopy" class="article-share-link">Share</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" rel="tag">学习笔记</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2021/03/13/sqlldr%E5%AF%BC%E5%85%A5%E5%A4%A7%E9%87%8F%E6%95%B0%E6%8D%AE%E5%88%B0oracle%E6%95%B0%E6%8D%AE%E5%BA%93/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          使用sqlldr导入上亿条数据到oracle中
        
      </div>
    </a>
  
  
    <a href="/2021/03/13/hello-world/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">Hello World</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/SCIP/">SCIP</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/django/">django</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/leetcode/">leetcode</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/oracle/">oracle</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" rel="tag">学习笔记</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" style="font-size: 10px;">学习笔记</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/03/">March 2021</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2021/03/13/224.%E5%9F%BA%E6%9C%AC%E8%AE%A1%E7%AE%97%E5%99%A8/">基本计算器</a>
          </li>
        
          <li>
            <a href="/2021/03/13/django%E8%87%AA%E5%AE%9A%E4%B9%89%E6%97%A5%E5%BF%97/">django自定义日志</a>
          </li>
        
          <li>
            <a href="/2021/03/13/sqlldr%E5%AF%BC%E5%85%A5%E5%A4%A7%E9%87%8F%E6%95%B0%E6%8D%AE%E5%88%B0oracle%E6%95%B0%E6%8D%AE%E5%BA%93/">使用sqlldr导入上亿条数据到oracle中</a>
          </li>
        
          <li>
            <a href="/2021/03/13/windows%E7%8E%AF%E5%A2%83%E4%B8%8B%E5%AE%89%E8%A3%85pyscipopt/">windows下安装pyscipopy</a>
          </li>
        
          <li>
            <a href="/2021/03/13/hello-world/">Hello World</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2021 John Doe<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/js/jquery-3.4.1.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>